home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
A-COMAL Series
/
(k)aai.d64
/
save'obj.proc
< prev
next >
Wrap
Text File
|
2007-02-28
|
333b
|
11 lines
9000 //
9010 PROC SAVE'OBJ(NAME$,START'ADDR,END'ADDR) CLOSED
9020 OPEN FILE 78,NAME$+",P",WRITE
9030 PRINT FILE 78: CHR$(START'ADDR MOD 256),
9040 PRINT FILE 78: CHR$(START'ADDR DIV 256),
9050 FOR ADDR:=START'ADDR TO END'ADDR DO
9060 PRINT FILE 78: CHR$(PEEK(ADDR)),
9070 ENDFOR ADDR
9080 CLOSE FILE 78
9090 ENDPROC SAVE'OBJ